Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Apache Arrow DataFusion Proto
Apache Arrow DataFusion is an extensible query execution framework, written in Rust, that uses Apache Arrow as its in-memory format.
This crate provides support format for serializing and deserializing the following structures to and from bytes:
LogicalPlan
's (includingExpr
),ExecutionPlan
s (includingPhysiscalExpr
)
This format can be useful for sending plans over the network, for example when building a distributed query engine.
Internally, this crate is implemented by converting the plans to protocol buffers using prost.
See Also
The binary format created by this crate supports the full range of DataFusion plans, but is DataFusion specific. See datafusion-substrait which can encode many DataFusion plans using the substrait.io standard.
Examples
Serializing Expressions
Based on examples/expr_serde.rs
use Result;
use ;
use Serializeable;
Serializing Logical Plans
Based on examples/logical_plan_serde.rs
use *;
use Result;
use ;
async
Serializing Physical Plans
Based on examples/physical_plan_serde.rs
use *;
use Result;
use ;
async
Generated Code
The prost/tonic code can be generated by running, which in turn invokes the Rust binary located in gen
This is necessary after modifying the protobuf definitions or altering the dependencies of gen, and requires a valid installation of protoc.